package cn.offcn.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author CHTt
 * @Date: 2021/04/22/ 下午 04:58
 * @Description
 */
@Controller
@RequestMapping("/main")
public class IndexController {


    @RequestMapping("/{page}")
    public String forwardPage(@PathVariable("page") String page){

        return "main/"+page;
    }

}
